package com.itheima.practice;

public class pracitce6 {
    public static void main(String[] args) {
       int max= getMax(30,40);
        System.out.println(max);
       int num= getMax1(20,50);
        System.out.println(num);
    }

    public static int  getMax(int a,int b) {
        int max=0;
        if(a>b){
            max=a;
        }else {
            max=b;
        }
        return max;
    }

    public static int  getMax1(int a,int b) {

        if(a>b){
           return a;
        }else {
            return b;
        }

    }
}
